#include <iostream>

int main()
{
	for (int i = 1; i < 10; ++i)
		for (int j = 0; j < 10; ++j)
			std::cout << (i * 1001 + j * 110) << std::endl;
	
	return 0;
}